{% extends 'group_base.html' %}

{% block theme %}
我参加的群组
{% endblock %}

{% block topic_content %}

{% for group in my_groups %}
<div class="ul" style="margin-bottom:6px;"></div>
<div class="clist2">
	<a href="/group/gr/{{ group.id }}/">
		<img src="/{{group.logo}}" align="left" style="margin:0 20px 0 10px;" alt={{group.name}}>
	</a>
	<div class="pl" style="float:right;">
		创建于{{ group.create_datetime|date:"Y-m-j" }}
		&nbsp;
		<a href="/group/members/{{group.id}}/">{{ group.members.all|length }}人</a>
	</div>
	<span class="pl2" style="font-size: 15px;">
		<a href="/group/gr/{{ group.id }}/">{{ group.name }}</a>
		&nbsp;&nbsp;&nbsp;&nbsp;组长：<a href="">{{ group.administrators.all.0.name }}</a>
	</span>
	<br>
	<div class="pl">{{ group.description|safe }}</div>
</div>
<br clear="all">
{% endfor %}

{% endblock %}

{% block aside %}

<p class="pl2">
&gt;
<a href="/group/new_group/">申请创建群组</a>
</p>

{% endblock %}